package com.geetour.columbus.region.utils;

import java.util.ArrayList;
import java.util.List;

import com.geetour.columbus.common.model.R.ProvincePage;
import com.geetour.columbus.common.utils.RandomUUID;

public class ProvincePageUtil {

    public static List<ProvincePage> getProvinceByNames(List<String> names) {
        if (names == null || names.isEmpty()) {
            return null;
        }
        List<ProvincePage> list = new ArrayList<ProvincePage>();
        for (String name : names) {
            ProvincePage pro = new ProvincePage();
            pro.setUuid(RandomUUID.code());
            pro.setName(name);
            list.add(pro);
        }
        return list;
    }

}
